"use strict";

const Controller = require('../common/admin')

class GoodsBrandController extends Controller {

  tableName='goods_brand'

  async addGoodsBrand() {
    let {brand_name, first_word, image, is_recommend, sort} = this.ctx.request.body

    let result = await this.add({brand_name, first_word, image, is_recommend, sort});
    console.log(result);
    this.resData()
  }

  async getGoodsBrandList() {
    let result = await this.consult()
    this.resData(0, '商品品牌列表获取成功', result)
  }

}

module.exports = GoodsBrandController